package net.yxsoft.controller.pc.sysmgt.infrastructure;

import com.jfinal.kit.Kv;
import net.yxsoft.bean.TsLogSearch;
import net.yxsoft.controller.pc.sysmgt.common.AuthController;
import net.yxsoft.service.infrastructure.LogService;


import rapid.jfinal.Pagination;



/**
 * Created by Administrator on 2017/8/17.
 */
public class LogController extends AuthController {

  private static final LogService srv = LogService.INSTANCE;


  public void index() throws IllegalAccessException {
    render("log.html");
  }

  /**
   * @return void
   * @throws
   * @MethodName: getObjects
   * @Description: 获取日志列表
   * @param:
   * @date 2023/8/31 15:29
   * @author jhf
   */
  public void getObjects() {
    TsLogSearch _searchModel = getBean(TsLogSearch.class, "");
    Kv cond = Kv.by("cond", _searchModel.notBlank() ? _searchModel : null);

    renderJson(srv.query("log.logPageSelect", cond, Pagination.by(this)));
  }
}